<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>字段集区块</title>
  <link href="../src/css/layui.css" rel="stylesheet">
</head>
<body style="padding: 20px;">
<fieldset class="layui-elem-field">
  <legend>字段集区块 - 默认风格</legend>
  <div class="layui-field-box">
    内容区域
  </div>
</fieldset>

<fieldset class="layui-elem-field layui-field-title">
  <legend>字段集区块 - 横线风格</legend>
  <div class="layui-field-box">
    内容区域
  </div>
</fieldset>
<script src="../src/layui.js"></script>
<script>
// 使用组件
layui.use(['element'], function(){
  var element = layui.element;

});
</script>
</body>
</html>